import { _decorator, Button, Component, director, input, Input, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('MainMenu')
export class MainMenu extends Component {
    @property(Button)
    playBtn: Button;
    onLoad () {
        // 开始游戏
        this.playBtn.node.on(Button.EventType.CLICK, this.onBtnPlay, this);
    }
    onBtnPlay(){
        director.loadScene('level-001');
    }
}


